#include "stdafx.h"
#include <stdio.h>
#include <cstdlib>
int main()
{
int i, j;
int k;
int arr[200000];
srand(5);
for (int i=0; i<=(199999); i++)
   arr[i]=rand()%1000;
   printf("%d, ",arr[i]);
   
printf( "\n");
for (int i=0; i<=(199998); i++)
for (int j=0; j<=(199998); j++)
  
	  if (arr[j]>arr[j+1]) 
	  {
		  k=arr[j];
		  arr[j]=arr[j+1];
		  arr[j+1]=k;
	  }
for (int i=0; i<=9; i++)
printf("%d, ",arr[i]);
	return 0;
}

